<div id="page_content" style="margin-left: 20px; margin-right: 20px;">  
<?php
if (is_user_logged_in())
{
global $current_user;
$user_roles = $current_user->roles;
$user_role = array_shift($user_roles);
if ($user_role == 'administrator' || $user_role == 'moderator')
{
$Record = new Pod('deal');
//simplified
$fields = array('name', 'camp_cat', 'brand', 'image', 'extlink', 'camp_start'=>array('hidden' =>true, 'input_helper' => 'input_helper_start_date_daily'), 'camp_end'=>array('input_helper' => 'input_helper_dateonly_modified'), 'oriprice', 'disper', 'disprice', 'city', 'short', 'dealcheck', 'daily' => array('default' => true, 'hidden' =>true), 'camp_link' => array('hidden' =>true));
echo $Record->publicForm($fields, 'Submit Daily Deal');
}
}
else
{
echo "Please Login to view Page";
}
?>
</div>